package com.dyc.maitaole.service.impl;

import com.dyc.maitaole.dao.GoodDAO;
import com.dyc.maitaole.entity.Good;
import com.dyc.maitaole.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodServiceImpl implements GoodService {
    @Autowired
    private GoodDAO goodDAO;

    public Good findGood(Integer goodId) {
        Good good = goodDAO.selectGood(goodId);
        return good;
    }
}
